
#wrapper of c++ code
class BtreePlusPython(object):
    """
        name string -> schema name
    """
    def __init__(self, name):
        self.__name = name
    def close(self):
        pass
    def clear(self):
        return 0
    """
        key string
        value string
        ret -> 0, ErrorCode
    """
    def insert(self, key, value):
        return 0
    """
        key string 
        ret -> 0, ErrorCode
    """
    def delete(self, key):
        return 0
    """
        key string 
        ret -> string
    """
    def find(self, key):
        return "{\"orderId\":1,\"orderNo\":\"000001\",\"price\":257.800000}"

    def __str__(self):
        return "name:%s" % name


from btreePlus.btreePlus import BtreePlus
def BtreeFactory(name):
    return BtreePlus(name)
